package com.dmall.cart.service;

import com.dmall.framework.result.DmallResult;
import com.dmall.pojo.TbItem;

import java.util.List;


/**
 * @author Chen 2017/11/19
 */
public interface CartService {
    DmallResult addCart(Long id, Long itemId, Integer num);

    DmallResult mergeCart(Long userId, List<TbItem> itemList);

    List<TbItem> getCartList(Long userId);

    DmallResult updateCartNum(long userId, long itemId, int num);

    DmallResult deleteCartItem(long userId, long itemId);

    DmallResult clearCartItem(long userId);

}
